//
//  MujiDubHeader.h
//  testdemo
//
//  Created by yule on 2017/5/18.
//  Copyright © 2017年 yule. All rights reserved.
//

#ifndef MujiDubHeader_h
#define MujiDubHeader_h

#define kScreenBounds ([[UIScreen mainScreen] bounds])
#define kScreenWidth (kScreenBounds.size.width)
#define kScreenHeight (kScreenBounds.size.height)
#define kScreenScale ([[UIScreen mainScreen] scale])

#define SCREEN_MAX_LENGTH (MAX(kScreenWidth, kScreenHeight))
#define kIS_IPHONE_6 (SCREEN_MAX_LENGTH >= 667.0)

/**
 *  返回一个RGBA格式的UIColor对象
 */
#define ColorWithRGBA(r, g, b, a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]

#define videoChineseScript @"videoChineseScript"

#define MujiDubUserId @"MujiDubUserId"

//网络状态
#define kReachabilityStatus @"kReachabilityStatus"

#ifndef __OPTIMIZE__
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
#endif


#endif /* MujiDubHeader_h */
